<?php
/**
 * @class Config 配置类
 * @constructor
 * @author Gary
 */
class Config {
	/**
	 * 数据库连接配置
	 */
	var $db = array(
		"type" 	=> "mysql",				//数据库类型
		"host"	=> "localhost",	//数据库服务器地址
		"user"	=> "root",     			//数据库用户名
		"pass"	=> "",     		//数据库密码
		"name"	=> "tourlog" 			//数据库名字
		);
	/**
	 * 模版配置
	 */
	var $template = array(
		"path" 		=> "Smarty",
		"dir"		=> "templates/Smarty",
		"compile"	=> "templates/Smarty_TMP"
		);

	/**
	 * url and file path configure
	 */
	var $base_url = "http://localhost/tourlog/admin/";
	var $base_path = "D:/www/tourlog/admin/";
	var $fileUpLoadUrl = "../client/fileUpLoad/";
	var $fileUpLoadDir = "../client/fileUpLoad/";
	
	/**
	 * file type
	 */
	var $fileType = array(
		"clothImgSmall"	=> array(
				"type"		=> "png",
				"width"		=> 50,
				"height"	=> 50,
			),
		"clothImgBig"	=> array(
				"type"		=> "jpg",
				"width"		=> 100,
				"height"	=> 100,
			),
		"bgImage"		=> array(
				"type"		=> "jpg",
				"width"		=> 800,
				"height"	=> 600,
			),
		"flash"			=> array(
				"type"		=> "swf",
				"width"		=> 300,
				"height"	=> 200,
			),
		);
	
	/**
	 * language type
	 */
	var $lang = "utf-8";
	
}
?>